package vn.fpt.fsoft.autotest.trustregionDAO;

import static org.junit.Assert.*;
import vn.fpt.fsoft.autotest.database.*;
import vn.fpt.fsoft.dao.*;

import org.junit.Test;

public class GetAllTrustRegion {

    @Test
    public void testInput1() {
        TrustRegionDB.CreateData();
        TrustRegionDAO dao = new TrustRegionDAO();
        assertEquals(2, dao.getAllTrustRegion().size());
    }
    
    @Test
    public void testInput2() {
        DBWithNoRow.CreateData();
        TrustRegionDAO dao = new TrustRegionDAO();
        assertEquals(0, dao.getAllTrustRegion().size());
    }

}
